package cn.ibdsr.human.transfer;

import cn.ibdsr.human.util.RegUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/4 10:15
 */
@ApiModel("修改手机号DTO")
@Data
public class ModifyPhoneDTO implements Serializable {
    private static final long serialVersionUID=2L;
    /**
     * 原密码
     */
    @ApiModelProperty(value = "手机号码",required = true)
    @NotEmpty(message = "手机号码不能为空" )
    @Pattern(regexp = RegUtils.MOBILE_PHONE, message = "手机号码格式错误")
    private String phone;
}
